// @ts-ignore
/* eslint-disable */
import { request } from 'umi';

/** 用户列表接口 GET /admin/door_lock/member/lists */
export async function lists(body: any, options?: { [key: string]: any }) {
  return request('/admin/door_lock/member/lists', {
    method: 'GET',
    headers: {
      'Content-Type': 'application/json',
    },
    params: body,
    ...(options || {}),
  });
}

/** 用户信息接口 GET /admin/door_lock/member/read */
export async function read(body: any, options?: { [key: string]: any }) {
  return request('/admin/door_lock/member/read', {
    method: 'GET',
    headers: {
      'Content-Type': 'application/json',
    },
    params: body,
    ...(options || {}),
  });
}

/** 新增用户接口 GET /admin/door_lock/member/create */
export async function create(body: any, options?: { [key: string]: any }) {
  return request('/admin/door_lock/member/create', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 更新用户接口 GET /admin/door_lock/member/update */
export async function update(body: any, options?: { [key: string]: any }) {
  return request('/admin/door_lock/member/update', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 删除用户接口 GET /admin/door_lock/member/delete */
export async function del(body: any, options?: { [key: string]: any }) {
  return request('/admin/door_lock/member/delete', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 同步用户接口 GET /admin/door_lock/member/sync */
export async function sync(body: any, options?: { [key: string]: any }) {
  return request('/admin/door_lock/member/sync', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
